﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace eLoan.Models
{
    [Table("Branch")]
    public class Branch : BranchFields
    { }

    public class BranchFields
    {
        [Key]
        [Display(Name = "Code")]
        [StringLength(50)]
        public string BranchCode { get; set; }

        [Required]
        [Display(Name = "Branch Name")]
        [StringLength(100)]
        public string BranchName { get; set; }

        [Required]
        [Display(Name = "Address")]
        [StringLength(200)]
        public string Address { get; set; }

        [Required]
        [Display(Name = "Contact Numbers")]
        [StringLength(200)]
        public string ContactNumbers { get; set; }

        [Required]
        [Display(Name = "Branch Manager")]
        [StringLength(200)]
        public string BranchManager { get; set; }

        [Required]
        [Display(Name = "Branch Manager Identification No.")]
        [StringLength(200)]
        public string BranchManagerIdentification { get; set; }

        [Required]
        [Display(Name = "Loan Processor")]
        [StringLength(200)]
        public string LoanProcessor { get; set; }

        [Required]
        [Display(Name = "Treasury Specialist")]
        [StringLength(200)]
        public string TreasurySpecialist { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

}